package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author linju
 * @since 2019-12-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SmsRecord对象", description = "短信发送记录表")
public class SmsRecord extends Model<SmsRecord> {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "自增主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "接收用户")
  private Long receiveUserInfoId;

  @ApiModelProperty(value = "接收手机号")
  private String receivePhone;

  @ApiModelProperty(value = "短信发送时间")
  private Timestamp snedTime;

  @ApiModelProperty(value = "是否发送成功")
  private Boolean isSuccess;

  @ApiModelProperty(value = "备注")
  private String remark;

  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
